#include <cxxomfort/complex.hpp>
#include <iostream>
#include <complex>

 #if (!defined(__cpp_user_defined_literals) )
	#error("user defined literals not supported")
 #endif
#if (!defined(__cpp_lib_complex_udls))
	#error("std::complex UDLs not supported")
#endif
 
int main()
{
    std::cout<< __cpp_user_defined_literals<< " "<< __cpp_lib_complex_udls<< std::endl;
    using namespace std::literals::complex_literals;
    std::complex<double> c = 1.0 + 1i;
    std::cout << "abs" << c << " = " << std::abs(c) << '\n';
    std::complex<float> z = 3.0f + 4.0if;
    std::cout << "abs" << z << " = " << std::abs(z) << '\n';
}
